
		

-- D:\GOA\reslibrary\templete\res\modal\modalmgr.xsl 58
gr_module("gm_xinbanchunzhongyun")


mcgfreportfilemgr = inherit(GmSql.list,GmBase.CallBack):name("mcgfreportfilemgr")



mcgfreportfilemgr.init = function (self,pagecount)

	local top = self
	
	
	GmSql.list.init(self,gInfo["path"]..'/'..g_local_db_name,'czy_reportfile')
	GmBase.CallBack.init(self)
	
	self.baseurl = ''

	self.idPair = {}
	self.idPair['prev'] = '0'
	self.idPair['next'] = '0'
	
	self.pageCount = pagecount or 10
	self.totalPage = 0
	
	self:reset_maxminid('czy_reportfile','id')
	
	
	self.action = {}
	self.op  = {}
	
	
	
	-----------------------------
	self.action['cgfreportfiledetail'] = {} 	
	-------
	self.op['cgfreportfiledetail'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfreportfiledetail()
		for a,b in pairs(top.action['cgfreportfiledetail']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfreportfiledetail(newpostparam)
		
	end	
		
  self.action['cgfreportfiledetail']['id'] = { ['title'] = '编号' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfiledetail']['filename'] = { ['title'] = 'filename' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfreportfiledetail']['update_time'] = { ['title'] = 'update_time' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfiledetail']['last_update_user_id'] = { ['title'] = 'last_update_user_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfiledetail']['confirm'] = { ['title'] = 'confirm' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfiledetail']['count'] = { ['title'] = '绱鎵撳嵃娆℃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfiledetail']['prefix'] = { ['title'] = 'prefix' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfreportfiledetail']['color'] = { ['title'] = 'color' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '7' }	
  self.action['cgfreportfiledetail']['app_key'] = { ['title'] = 'app_key' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfreportfiledetail']['priority'] = { ['title'] = 'priority' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfiledetail']['printSql'] = { ['title'] = 'sql璇彞' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfiledetail']['printSql_name'] = { ['title'] = 'sql瀛楁鍚嶇О' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfiledetail']['force'] = { ['title'] = '1涓虹壒娈婃姤琛紝0涓哄師鎶ヨ〃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfiledetail']['print_time'] = { ['title'] = '鏈€鍚庝竴娆℃墦鍗版椂闂?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfiledetail']['y_count'] = { ['title'] = '浠婂勾鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfiledetail']['m_count'] = { ['title'] = '鏈湀鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfiledetail']['d_count'] = { ['title'] = '褰撳ぉ鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }
  self.action['cgfreportfiledetail']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfreportfilemodify'] = {} 	
	-------
	self.op['cgfreportfilemodify'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfreportfilemodify()
		for a,b in pairs(top.action['cgfreportfilemodify']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfreportfilemodify(newpostparam)
		
	end	
		
  self.action['cgfreportfilemodify']['id'] = { ['title'] = '编号' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilemodify']['filename'] = { ['title'] = 'filename' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfreportfilemodify']['update_time'] = { ['title'] = 'update_time' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilemodify']['last_update_user_id'] = { ['title'] = 'last_update_user_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilemodify']['confirm'] = { ['title'] = 'confirm' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfilemodify']['count'] = { ['title'] = '绱鎵撳嵃娆℃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilemodify']['prefix'] = { ['title'] = 'prefix' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfreportfilemodify']['color'] = { ['title'] = 'color' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '7' }	
  self.action['cgfreportfilemodify']['app_key'] = { ['title'] = 'app_key' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfreportfilemodify']['priority'] = { ['title'] = 'priority' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilemodify']['printSql'] = { ['title'] = 'sql璇彞' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilemodify']['printSql_name'] = { ['title'] = 'sql瀛楁鍚嶇О' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilemodify']['force'] = { ['title'] = '1涓虹壒娈婃姤琛紝0涓哄師鎶ヨ〃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfilemodify']['print_time'] = { ['title'] = '鏈€鍚庝竴娆℃墦鍗版椂闂?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilemodify']['y_count'] = { ['title'] = '浠婂勾鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilemodify']['m_count'] = { ['title'] = '鏈湀鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilemodify']['d_count'] = { ['title'] = '褰撳ぉ鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }
  self.action['cgfreportfilemodify']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfreportfileitem'] = {} 	
	-------
	self.op['cgfreportfileitem'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfreportfileitem()
		for a,b in pairs(top.action['cgfreportfileitem']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfreportfileitem(newpostparam)
		
	end	
		
  self.action['cgfreportfileitem']['id'] = { ['title'] = '编号' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfileitem']['filename'] = { ['title'] = 'filename' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfreportfileitem']['update_time'] = { ['title'] = 'update_time' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfileitem']['last_update_user_id'] = { ['title'] = 'last_update_user_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfileitem']['confirm'] = { ['title'] = 'confirm' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfileitem']['count'] = { ['title'] = '绱鎵撳嵃娆℃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfileitem']['prefix'] = { ['title'] = 'prefix' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfreportfileitem']['color'] = { ['title'] = 'color' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '7' }	
  self.action['cgfreportfileitem']['app_key'] = { ['title'] = 'app_key' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfreportfileitem']['priority'] = { ['title'] = 'priority' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfileitem']['printSql'] = { ['title'] = 'sql璇彞' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfileitem']['printSql_name'] = { ['title'] = 'sql瀛楁鍚嶇О' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfileitem']['force'] = { ['title'] = '1涓虹壒娈婃姤琛紝0涓哄師鎶ヨ〃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfileitem']['print_time'] = { ['title'] = '鏈€鍚庝竴娆℃墦鍗版椂闂?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfileitem']['y_count'] = { ['title'] = '浠婂勾鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfileitem']['m_count'] = { ['title'] = '鏈湀鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfileitem']['d_count'] = { ['title'] = '褰撳ぉ鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }
  self.action['cgfreportfileitem']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfreportfilelist'] = {} 	
	-------
	self.op['cgfreportfilelist'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfreportfilelist()
		for a,b in pairs(top.action['cgfreportfilelist']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfreportfilelist(newpostparam)
		
	end	
		
  self.action['cgfreportfilelist']['id'] = { ['title'] = '编号' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilelist']['filename'] = { ['title'] = 'filename' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfreportfilelist']['update_time'] = { ['title'] = 'update_time' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilelist']['last_update_user_id'] = { ['title'] = 'last_update_user_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilelist']['confirm'] = { ['title'] = 'confirm' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfilelist']['count'] = { ['title'] = '绱鎵撳嵃娆℃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilelist']['prefix'] = { ['title'] = 'prefix' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfreportfilelist']['color'] = { ['title'] = 'color' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '7' }	
  self.action['cgfreportfilelist']['app_key'] = { ['title'] = 'app_key' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfreportfilelist']['priority'] = { ['title'] = 'priority' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilelist']['printSql'] = { ['title'] = 'sql璇彞' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilelist']['printSql_name'] = { ['title'] = 'sql瀛楁鍚嶇О' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilelist']['force'] = { ['title'] = '1涓虹壒娈婃姤琛紝0涓哄師鎶ヨ〃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfilelist']['print_time'] = { ['title'] = '鏈€鍚庝竴娆℃墦鍗版椂闂?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilelist']['y_count'] = { ['title'] = '浠婂勾鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilelist']['m_count'] = { ['title'] = '鏈湀鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilelist']['d_count'] = { ['title'] = '褰撳ぉ鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }
  self.action['cgfreportfilelist']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
	-----------------------------
	self.action['cgfreportfilepost'] = {} 	
	-------
	self.op['cgfreportfilepost'] = function(postparam,ui)
	
		local net = GmBase.czynet.get_instance()		
		local newpostparam = {}
		local tbname,callbackey,newpostparam = net:cgfreportfilepost()
		for a,b in pairs(top.action['cgfreportfilepost']) do
			if postparam[a] ~= nil then
				newpostparam[a] = postparam[a]
			end
		end
		net:add_callback(callbackey,ui)	
		local tb,callbackey = net:cgfreportfilepost(newpostparam)
		
	end	
		
  self.action['cgfreportfilepost']['id'] = { ['title'] = '编号' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilepost']['filename'] = { ['title'] = 'filename' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '64' }	
  self.action['cgfreportfilepost']['update_time'] = { ['title'] = 'update_time' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilepost']['last_update_user_id'] = { ['title'] = 'last_update_user_id' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilepost']['confirm'] = { ['title'] = 'confirm' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfilepost']['count'] = { ['title'] = '绱鎵撳嵃娆℃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilepost']['prefix'] = { ['title'] = 'prefix' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '255' }	
  self.action['cgfreportfilepost']['color'] = { ['title'] = 'color' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '7' }	
  self.action['cgfreportfilepost']['app_key'] = { ['title'] = 'app_key' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '32' }	
  self.action['cgfreportfilepost']['priority'] = { ['title'] = 'priority' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilepost']['printSql'] = { ['title'] = 'sql璇彞' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilepost']['printSql_name'] = { ['title'] = 'sql瀛楁鍚嶇О' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilepost']['force'] = { ['title'] = '1涓虹壒娈婃姤琛紝0涓哄師鎶ヨ〃' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '2' }	
  self.action['cgfreportfilepost']['print_time'] = { ['title'] = '鏈€鍚庝竴娆℃墦鍗版椂闂?' , ['t'] = 's' , ['min'] = 'NaN' , ['max'] = '20' }	
  self.action['cgfreportfilepost']['y_count'] = { ['title'] = '浠婂勾鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilepost']['m_count'] = { ['title'] = '鏈湀鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }	
  self.action['cgfreportfilepost']['d_count'] = { ['title'] = '褰撳ぉ鎵撳嵃娆℃暟' , ['t'] = 'n' , ['min'] = 'NaN' , ['max'] = '11' }
  self.action['cgfreportfilepost']['list_source'] = { ['title'] = '' ,['t'] = 's' , ['max'] = 50 }
	
  
 
  	
  
	self.session = {}
	
end   





mcgfreportfilemgr.check_fields_validate = function(self,key,postparam)
	local checkfunc = {}
	checkfunc['t'] = function(fm,value)
		return true
	end
	checkfunc['min'] = function(fm,value)
		if string.len(value) < tonumber(fm) then
			return false
		end
		return true
	end
	checkfunc['max'] = function(fm,value)
		if string.len(value) > tonumber(fm) then
			return false
		end
		return true
	end
	local format = self.action[key]
	for fkey,fvalue in pairs(postparam) do
		if format[fkey] ~= nil then
			for fmkey,fmvalue in pairs(format[fkey]) do
				if checkfunc[fmkey] ~= nil then
					if checkfunc[fmkey](fmvalue,fvalue) == false then
						return false,tostring(format[fkey]['title']).." "..tostring(fmkey).." "..tostring(fmvalue).." error"
					end
				end
			end
		end
	end
	return true,""
end 


 
mcgfreportfilemgr.get_session = function(self,key)
	if key == nil then
		key = 'default'
	end
	return self.session[key]
end

mcgfreportfilemgr.has_session = function(self,key)
	if key == nil then
		key = 'default'
	end
	return self.session[key] ~= nil
end
 
 
mcgfreportfilemgr.add_session = function(self,key,ses)
	self.session[key] = ses
end


mcgfreportfilemgr.add_ui = function(self,key,ui)
	self.uis[key] = ui
end




-- todo
mcgfreportfilemgr.run = function(self,key,ui)
	if self.action[key] ~= nil and self.op[key] ~= nil then
		local tb = {}
		for k,v in pairs(self.action[key]) do
			if ui[k] ~= nil and type(ui[k]) == 'table' and ui[k].get_text then
				tb[k] = ui[k]:get_text()
			else
				print('run error',key,k)
			end
		end
		local success,msg = self:check_fields_validate(key,tb)
		if success then
			self.op[key](tb,ui)
		else
			ui.hostWindow:showMsg(msg)
		end		
	else
		print('run error self.action',key)
	end
end


------------------------------------------------------------------------------------


mcgfreportfilemgr.get_net_page = function(self,netmethon,attrs)
	local top = self	
	local discuz = GmBase.net.get_instance()
	local methon = netmethon
	if methon ~= nil and discuz[methon] then
		print('mcgfreportfilemgr.get_net_page ',methon)
		local tbname,callbackey,tb = discuz[netmethon](discuz)
		for k,v in pairs(attrs) do
			tb[k] = attrs[k]
		end
		discuz[netmethon](discuz,tb)
	else
		print('mcgfreportfilemgr.get_net_page error ',methon)
	end		
end




mcgfreportfilemgr.get_prev_page = function(self,ui,callback)
	if ui.page ~= nil and type(ui.page) == 'number' then
		local uiattrs = ui:GetAttrs()
		local attrs = {}
		for a,b in pairs(self.action['cgfreportfilelist']) do
			if type(uiattrs[a]) ~= nil then
				attrs[a] = uiattrs[a]
			end
		end
		attrs.page = ui.page - 1		

		if attrs.page < 1 then
			attrs.page = 1
		end

		self:get_net_page(ui.netmethon,attrs)
	end
end


mcgfreportfilemgr.get_next_page = function(self,ui,callback)
	if ui.page ~= nil and type(ui.page) == 'number' then
		local uiattrs = ui:GetAttrs()
		local attrs = {}
		for a,b in pairs(self.action['cgfreportfilelist']) do
			if type(uiattrs[a]) ~= nil then
				attrs[a] = uiattrs[a]
			end
		end
		attrs.page = ui.page + 1
		self:get_net_page(ui.netmethon,attrs)
	end
end

------------------------------------------------------------------------------------



mcgfreportfilemgr.init_table = function(self)
	--[[
	local tablefield = {}
	
	--number
	tablefield['id'] = { ["i"] = 11, }
    
	--string
	tablefield['filename'] = { ["v"] = 64, }
    
	--string
	tablefield['update_time'] = { ["v"] = 20, }
    
	--number
	tablefield['last_update_user_id'] = { ["i"] = 11, }
    
	--number
	tablefield['confirm'] = { ["i"] = 2, }
    
	--number
	tablefield['count'] = { ["i"] = 11, }
    
	--string
	tablefield['prefix'] = { ["v"] = 255, }
    
	--string
	tablefield['color'] = { ["v"] = 7, }
    
	--string
	tablefield['app_key'] = { ["v"] = 32, }
    
	--number
	tablefield['priority'] = { ["i"] = 11, }
    
	--string
	tablefield['printSql'] = { ["v"] = 20, }
    
	--string
	tablefield['printSql_name'] = { ["v"] = 20, }
    
	--number
	tablefield['force'] = { ["i"] = 2, }
    
	--string
	tablefield['print_time'] = { ["v"] = 20, }
    
	--number
	tablefield['y_count'] = { ["i"] = 11, }
    
	--number
	tablefield['m_count'] = { ["i"] = 11, }
    
	--number
	tablefield['d_count'] = { ["i"] = 11, }
    
	self:create_table( self.tablename, tablefield)
	]]
	self:initTableStruct()
end


	